package com.baoteng.scan;

import android.app.Activity;
import android.content.res.AssetFileDescriptor;
import android.view.SurfaceHolder;
import android.view.SurfaceView;
import android.widget.RelativeLayout;

/**
 * Author: loren
 * Date: 2019/9/16
 */
public interface IScan {

    /**
     * 页面可见时绑定surfaceView
     */
    void init(Activity con, RelativeLayout mContainer, RelativeLayout mCropLayout, AssetFileDescriptor file, SurfaceView surfaceView);

    void surfaceDestroyed(SurfaceHolder holder);

    void surfaceCreated(SurfaceHolder holder);

    void actDestory();

    void actPause();

    void switchFlashLight(boolean open);
}
